import Cookies from 'js-cookie'

const TokenKey = 'auth-token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function removeToken() {
  // 注意只能删除符合域名和路径的cookie
  return Cookies.remove(TokenKey, { domain: 'sso.system.com', path: '/' })
}
